/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class MilkFrother {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050058';
    }

    get categoryName() {
        return '\u51b2\u5976\u673a';
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'p3deZIWS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPowder(params) {
        return command({
            method: 'getPowder',
            methodId: 'phEqYRZd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ptRSxWwZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'pDrhg1uA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWater(params) {
        return command({
            method: 'getWater',
            methodId: 'pgh0uoxr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pdN7VzML',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPowder(params) {
        return command({
            method: 'setPowder',
            methodId: 'pGoxpNXU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pZgRrvyw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'ppAX3iEm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'p1vZQkQC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemperature(params) {
        return command({
            method: 'setTemperature',
            methodId: 'peH3by55',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWater(params) {
        return command({
            method: 'setWater',
            methodId: 'pUPQLHJP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default MilkFrother;
